home *** CD-ROM | disk | FTP | other *** search
- Path: unix1.sncc.lsu.edu!eenaya
- From: eenaya@unix1.sncc.lsu.edu (Pradeep Nayar)
- Newsgroups: comp.lang.c++
- Subject: returning null structure
- Date: 19 Apr 1996 22:10:22 GMT
- Organization: Louisiana State University
- Message-ID: <4l930e$uic@sp115.ocs.lsu.edu>
- NNTP-Posting-Host: unix1-t.sncc.lsu.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
- I have a function which returns an object, how can I return an error condition.
- Let me be more specific:
- I am implementing a stack and in the pop() fn. I want ot return a null
- object or something when the stack is empty. In case of characters, i can
- return a -1; what do i do when i have a stack of objects?
-
- Pradeep
-